PARS=parser
DEBUG=debug
HTTP_SERVER=http_server
CC=g++

.PHONY:all
all:$(PARS) $(DEBUG) $(HTTP_SERVER)

$(PARS):parser.cc
	$(CC) -o $@ $^  -lboost_system -lboost_filesystem -std=c++11
$(DEBUG):debug.cc
	$(CC) -o $@ $^ -ljsoncpp -std=c++17
$(HTTP_SERVER):http_server.cc
	$(CC) -o $@ $^ -ljsoncpp -lpthread -std=c++17

.PHONY:clean
clean:
	rm -f $(PARS) $(DEBUG) $(HTTP_SERVER)